feat(plugin): add cockroach sql support#536
Conversation
|
If you're new to commit signing, there are different ways to set it up: Sign commits with
|
7bab77e to
6122e82
Compare
Adds the ability to read Database Credentials and inject for `cockroach sql`. Signed-off-by: Anton Antonov <anton.synd.antonov@gmail.com>
6122e82 to
24adb36
Compare
Marton6
left a comment
There was a problem hiding this comment.
Looks good! Thank you for your contribution
|
Neat-o. Perhaps 1 more reviewer. 👁️ @mrjones2014 if you have the time |
Overview
This PR adds a new shell plugin for CockroachDB that enables secure credential management for the
cockroach sqlcommand. The plugin supports both local development (insecure mode) and production environments (secure TLS connections) through environment variable configuration.Type of change
Related Issue(s)
How To Test
tl;dr There's a demo. https://streamable.com/btqzp5. It goes from a clean DB credential creation, renaming fields to match the expected format, etc.
Apologies for the streamable link, but GitHub has a 10mb file size limit and the mp4 demo video was already 58 or so mb.
Set up database credentials in 1Password with the following fields:
localhost26257rootdefaultdb1(for local development)Test with local CockroachDB instance:
Test environment variable import:
Run plugin validation:
Changelog
The CockroachDB plugin enables authentication for the
cockroach sqlcommand using Touch ID and other unlock options with 1Password Shell Plugins.